﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Ciripescu_WebRole
{
    public class BasePage : System.Web.UI.Page
    {
        public string ScoateVirgulele(string str)
        {
            string ret = str;
            if (str.Contains(","))
                ret = str.Substring(0, str.IndexOf(','));
            return ret;
        }

        public BasePage()
        {
            this.PreInit += new System.EventHandler(PrelucreazaQueryString);
        }

        private void PrelucreazaQueryString(object sender, System.EventArgs args)
        {
            foreach (string key in Request.QueryString.Keys)
            {
                //Request.QueryString[key] = ScoateVirgulele(Request.QueryString[key]);
                //if (Request.QueryString[key].Contains(",")) Request.QueryString.r 
            }
        }
    }
}
